<?php
namespace app\admin\validate;
use think\Validate;

/**
 * 模块字典信息验证器
 * Created by PhpStorm.
 * User: tyll
 * Date: 2019/09/24
 * Time: 15:04
 */
class ModularDict extends Validate{

    protected $rule = [
        'name'     => 'require'
    ];

    protected $message = [
        'name.require'     => '模块名称必须填写'
    ];

    protected $scene = [
        'add'  => ['name'],
        'edit' => ['name']
    ];
}